home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / flythrough / O.sgi / Makefile < prev    next >
Makefile  |  1993-01-29  |  854b  |  35 lines

  1. GEOM = ../../../..
  2. include ${GEOM}/makefiles/Makedefs.global
  3. include ../Makedefs
  4. include ${GEOM}/makefiles/Makerules.obj
  5.  
  6. CFLAGS = -g -I${GEOM}/include
  7. LIBS= -L${GEOM}/lib/${MACHTYPE} -lforms -lfm_s -lgl_s
  8.  
  9. install:    install_module
  10.  
  11. install_module:    ${TARGETS}
  12.     ${INSTALLMODULE} ${TARGETS} ../.geomview-flythrough ${MODULEDIR}
  13.  
  14. ${TARGETS}:    ${OBJS} 
  15.     /bin/rm -f ../${TARGETS}
  16.     ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
  17.     ln ${TARGETS} ..
  18.  
  19.  
  20. SED =     sed \
  21.         -e 's/\\/\\\\/g'        \
  22.         -e 's/"/\\"/g'            \
  23.         -e '1s/^\(.*\)$$/"\1/'         \
  24.         -e 's/^\(.*\)$$/\1\\n\\/'    \
  25.         -e '$$s/^\(.*\)/\1n"/'
  26.  
  27. flyhelp.h:    ../flyhelp
  28.     /bin/rm -f ../flyhelp.h
  29.     ( echo '/*' ; \
  30.       echo ' * flyhelp.h: generated automatically from file "flyhelp"' ; \
  31.       echo ' *' ; \
  32.       echo ' *  to modify, edit "flyhelp" and type "make flyhelp.h"' ; \
  33.       echo ' */' ; \
  34.       ${SED} < ../flyhelp ) > ../flyhelp.h
  35.